#ifndef NEWUPDATECHANNELDIALOG_H
#define NEWUPDATECHANNELDIALOG_H

#include <QDialog>
#include <QMap>
#include "toObject/ModelXml.h"
#include "pugixml/pugixml.hpp"

namespace Ui {
class NewUpdateChannelDialog;
}

class NewUpdateChannelDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NewUpdateChannelDialog(QWidget *parent = nullptr);
    ~NewUpdateChannelDialog();

public:
    void SetInitChannelName(QString updateName);
    stUpdateChannel GetUpdateChannelInfo();

private:
    void ParseXML(QString strFilePath);

private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_comboBox_2_currentIndexChanged(int index);

    void on_pushButton_3_clicked();

    void on_lineEdit_6_textChanged(const QString &arg1);

private:
    Ui::NewUpdateChannelDialog *ui;
    QMap<QString,QWidget *> m_mapChilds;
    QMap<int ,stPrivateParam> m_params;
    stUpdateChannel updateInfo;
};

#endif // NEWUPDATECHANNELDIALOG_H
